import { postRequest, getRequest } from "@/utils/request";
import { postRequest1, getRequest1 } from "@/utils/request1";

// 获取图片验证码
export const GetCaptcha = () => {
  return getRequest1("/api/v2/cms/account/captcha");
};

// 获取验证码
export const emailSendApi = (data) => {
  return getRequest("/api/tool/email_send", data);
};

// =============================== 加密接口 =======================

// 登录接口
export const newLogin = (data) => {
  return postRequest1("/api/mer/login", data);
};

// 忘记密码
export const resetNewPasswordApi = (data) => {
  return postRequest1("/api/v2/user/forget_password", data);
};

// 修改密码
export const ChangeNewPassword = (data) => {
  return postRequest1("/api/mer/change_password", data);
};

export const setPayPasswordNewApi = (data) => {
  return postRequest1("/api/mer/set_tradepwd", data);
};
